
public class T17{

	public static void main(String[] args){
	
		int[] oldArr = new int[]{1,3,4,5,0,0,6,6,0,5,4,7,6,7,0,5};
		
		 T17.add(oldArr);
		
		
	}
	
	
	
	public static void add(int[] shuZu){
		int[] newArr = new int[shuZu.length];
		int a =0;
		for(int i = 0;i < shuZu.length;i++){
			
			if(shuZu[i]!= 0){
				newArr[a++] = shuZu[i];
				
			}
		}
		
		for(int i = 0;i < a;i++){
			System.out.println(newArr[i]);
		}
		
	}
}